//read from file ,modify on char or chinese than save file

import java.io.*;
import java.util.*;

public class Main{
	public static void main(String[] args){
		char[] symbols={'0','1','2','3','4','5','6','7','8','9'};
		try{
			PushbackReader pushbackreader=new PushbackReader(new FileReader(args[0]));
			FileWriter filewriter=new FileWriter(args[0]+"replace");
			int c=0;
			while((c=pushbackreader.read())!=-1){
				int poss=-1;
				switch(c){
					case '0':
						poss=0;
						break;
					case '1':
						poss=1;
						break;
					case '2':
						poss=2;
						break;
					case '3':
						poss=3;
						break;
					case '4':
						poss=4;
						break;
					case '5':
						poss=5;
						break;
					case '6':
						poss=6;
						break;
					case '7':
						poss=7;
						break;
					case '8':
						poss=8;
						break;
					case '9':
						poss=9;
						break;
					default:
						filewriter.write(c);
						break;
				}

				if(poss!=-1){
//					pushbackreader.unread(c);
					filewriter.write(symbols[poss]);
				}


			}
			pushbackreader.close();
			filewriter.close();
			

		}
		catch(ArrayIndexOutOfBoundsException e){
			e.printStackTrace();
		}
		catch(IOException e){
			e.printStackTrace();
		}
	}
}